#ifndef BFCP_PARTICIPANT_KEY_HXX
#define BFCP_PARTICIPANT_KEY_HXX

#include "rutil/resipfaststreams.hxx"

namespace bfcp
{
    class BfcpParticipantKey
    {
    public:
        BfcpParticipantKey();
        BfcpParticipantKey(UInt32 confId, UInt16 userId);
        BfcpParticipantKey(const BfcpParticipantKey& rhs);
        BfcpParticipantKey operator=(const BfcpParticipantKey& rhs);

        bool operator<(const BfcpParticipantKey& rhs) const;

        UInt32 getConferenceId() const { return mConfId; }
        UInt16 getUserId() const { return mUserId; }

    private:
        UInt32 mConfId;
        UInt16 mUserId;

        friend EncodeStream& operator<<(EncodeStream& strm, const BfcpParticipantKey& key);
    };

}
#endif // #ifndef BFCP_PARTICIPANT_KEY_HXX
